import { request } from '@/utils/request'

// ------------------------------ 登录/登出相关接口 ------------------------------
export const loginApi = (params: USER.ILoginP): Promise<USER.ILoginR> => {
  return request.post('/mock/login', params)
}

export const logoutApi = (): Promise<object> => {
  return request.post('/mock/logout')
}

// ------------------------------ 用户其他相关接口 ------------------------------
export const userInfoApi = (): Promise<USER.IUserInfo> => {
  return request.post('/mock/userinfo')
}

export const userMenusApi = (): Promise<USER.IUserMenus> => {
  return request.post('/mock/menus')
}
